// 引入公共方法
import './public.js';
// 打开应用
const robot = require("robotjs");
// 鼠标移动插件引用
const mouse = robot.getMousePos();
// 延时函数
const delayFn = () => {
    return new Promise((res, rej) => {
        setTimeout(() => {
            res()
        }, 5000);
    })
}
const mainScript = async () => {
    await delayFn();
    console.log("Mouse is at x:" + mouse.x + " y:" + mouse.y);
    //Move the mouse down by 100 pixels.
    robot.moveMouse(100, 120);

    //Left click!
    robot.mouseClick();
    robot.mouseClick();
}